package com.springboot.waf.admin.controller;

import com.springboot.waf.admin.pojo.po.User;
import com.springboot.waf.admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: shaohai.huang
 * @date: 2019-11-04
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/list")
    public List<User> getAllUsers() {
        return userService.getAllUsers();
    }
}
